package com.gree.elasticsearch.domain;

import com.frameworkset.orm.annotation.ESId;
import com.frameworkset.orm.annotation.ESIndex;
import org.frameworkset.elasticsearch.entity.ESBaseData;

/**
 * 总有刁民想害朕，请叫我小花狗
 * create by zxw on 2020/4/28
 */
@ESIndex(name = "account")
public class Account extends ESBaseData {

    @ESId
    private Integer accountId;
    private String username;
    private String password;

    public Account() {}

    public Account(Integer accountId, String username, String password) {
        this.accountId = accountId;
        this.username = username;
        this.password = password;
    }

    public Integer getAccountId() {
        return accountId;
    }

    public void setAccountId(Integer accountId) {
        this.accountId = accountId;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    @Override
    public String toString() {
        return "Account{" +
                "accountId=" + accountId +
                ", username='" + username + '\'' +
                ", password='" + password + '\'' +
                '}';
    }
}
